package com.property.biz.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.property.biz.InformBiz;
import com.property.dao.InformDao;
import com.property.entity.Inform;

@Service("informBiz")
@Scope("prototype")
public class InformBizImpl implements InformBiz {
		
	    @Autowired
		private InformDao informDao;
	
	    public void addInform(Inform inform) {
	  	  informDao.addInform(inform);
		
	}

	public List<Inform> getAll(int mid, int pageSize, int startIndex) {
			
			return informDao.getAll(mid, pageSize, startIndex);
		}



		public int getRowCount(int mid) {
			
			return informDao.getRowCount(mid);
		}






		public void add(Inform inform) {
			informDao.add(inform);
			
		}

		public List<Inform> getInforms(int oid) {
		
			return informDao.getInforms(oid);
		}

		public void deleteInform(int id) {
				informDao.deleteInform(id);
			
		}

		public void delInform(int cid) {
			informDao.delInform(cid);
		}
}
